﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace EjercicioIV
{
    class Parte_3_Zoo
    {
        static void Main(string[] args)
        {
            ArrayList Animales = new ArrayList();

            Insecto insect1 = new Insecto("escarabajo", "pepito el bajito", 0.001,1, true);
            Ave pajaro1 = new Ave("petirojo", "pajaro loco", 10, 12, "rojo", 25);
            Mamifero mamal1 = new Mamifero("elefante", "dumbo", 155, 10);
            Animales.Add(insect1);
            Animales.Add(pajaro1);
            Animales.Add(mamal1);
            Animales.Add(new Ave("Aguila","Silver",75,10,"Blanco y negro",120));
            Animales.Add(new Ave("canario","piolin",1.100,10,"amarillo",15));
            Animales.Add(new Mamifero("Gato","Silvestre",12,3));
            Animales.Add(new Insecto("cucaracha","ya no puede caminar",0.0002,1,false));

            foreach(Animal item in Animales)
            {
                item.queClaseDeAnimalEres();
                Console.WriteLine("---------------------------------------------------------");
            }
            Console.ReadLine();
        }
    }
}
